/*
 Navicat Premium Dump SQL

 Source Server         : 惠尔瑞
 Source Server Type    : SQL Server
 Source Server Version : 10501600 (10.50.1600)
 Source Host           : localhost:1433
 Source Catalog        : AIS20171214100535
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 10501600 (10.50.1600)
 File Encoding         : 65001

 Date: 24/10/2024 18:13:57
*/


-- ----------------------------
-- Table structure for crm_tableDataChange
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[crm_tableDataChange]') AND type IN ('U'))
	DROP TABLE [dbo].[crm_tableDataChange]
GO

CREATE TABLE [dbo].[crm_tableDataChange] (
  [id] int  IDENTITY(1,1) NOT NULL,
  [module] varchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [table_name] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [data_id] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [assist_val] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [action] varchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [change_time] datetime  NULL
)
GO

ALTER TABLE [dbo].[crm_tableDataChange] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'所属模块标识',
'SCHEMA', N'dbo',
'TABLE', N'crm_tableDataChange',
'COLUMN', N'module'
GO

EXEC sp_addextendedproperty
'MS_Description', N'表名',
'SCHEMA', N'dbo',
'TABLE', N'crm_tableDataChange',
'COLUMN', N'table_name'
GO

EXEC sp_addextendedproperty
'MS_Description', N'数据id',
'SCHEMA', N'dbo',
'TABLE', N'crm_tableDataChange',
'COLUMN', N'data_id'
GO

EXEC sp_addextendedproperty
'MS_Description', N'辅助值 （例如：类型）',
'SCHEMA', N'dbo',
'TABLE', N'crm_tableDataChange',
'COLUMN', N'assist_val'
GO

EXEC sp_addextendedproperty
'MS_Description', N'操作',
'SCHEMA', N'dbo',
'TABLE', N'crm_tableDataChange',
'COLUMN', N'action'
GO

EXEC sp_addextendedproperty
'MS_Description', N'时间',
'SCHEMA', N'dbo',
'TABLE', N'crm_tableDataChange',
'COLUMN', N'change_time'
GO


-- ----------------------------
-- Auto increment value for crm_tableDataChange
-- ----------------------------
DBCC CHECKIDENT ('[dbo].[crm_tableDataChange]', RESEED, 190)
GO


-- ----------------------------
-- Primary Key structure for table crm_tableDataChange
-- ----------------------------
ALTER TABLE [dbo].[crm_tableDataChange] ADD CONSTRAINT [PK__crm_tabl__3213E83F5F7BFD71] PRIMARY KEY CLUSTERED ([id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

